package com.hk.service.kyc;

import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.Agreement;
import com.hk.commons.entity.product.Payment;
import com.hk.commons.entity.sys.SysUser;

public interface IAgreement {
	
	public Agreement findById(long id);

	/**
	 * 保存
	 * 
	 * @param
	 * @return
	 */
	public Long add(Agreement u);

	/**
	 * 删除
	 * 
	 * @param
	 * @return
	 */
	public void delete(Agreement u);

	/**
	 * 更新
	 * 
	 * @param 
	 */
	public void update(Agreement u);

	public List<Agreement> findByFilter(HqlFilter hqlFilter, int pageNum,
			int pageSize);

	public List<Agreement> findByFilter(HqlFilter hqlFilter);

	public Long countByFilter(HqlFilter hqlFilter);

	public String getByInfo(Long id, Long userId, String amt);

	/**
	 *获取投资确认函id
	 */
	public Long  getTQRHId();

	public String createIFAPdf(SysUser sysUser, Payment payment);

	public String createIFAHtml(SysUser sysUser, Payment payment);

	public String showIFA(SysUser sysUser, Payment payment);
}
